package com.example.todolist.service;

import com.example.todolist.dto.business.PlanCreateDTO;
import com.example.todolist.dto.business.PlanStatusCountDTO;
import com.example.todolist.dto.business.QueryPlanByConditionDTO;
import com.example.todolist.model.Plan;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.todolist.response.BaseResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2022-02-26
 */
public interface PlanService extends IService<Plan> {

    BaseResponse planCreate(PlanCreateDTO dto);

    BaseResponse queryPlanByCondition(QueryPlanByConditionDTO dto);

    BaseResponse queryPlanGroupByYear(QueryPlanByConditionDTO dto,String uid);


    BaseResponse queryPlanById(Long id);

    BaseResponse editPlan(Plan plan);

    BaseResponse queryAllByOpenId();

    BaseResponse queryPlanByUidAndType(Plan plan);

    BaseResponse queryAllPlanDateByUid(String uid);

    BaseResponse deletePlanById(String id);



}
